package com.pinda.controller;


import com.pinda.oms.entity.PdOrder;
import com.pinda.oms.entity.PdOrderLocation;
import com.pinda.service.IPdOrderLocationService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 订单位置信息  前端控制器
 * </p>
 *
 * @author lc
 * @since 2023-06-14
 */
@RestController
@RequestMapping("/pd-order-location")
public class PdOrderLocationController {

    @Resource
    private IPdOrderLocationService iPdOrderLocationService;


    @PostMapping("saveOrderLocation")
    public boolean saveOrderLocation(@RequestBody PdOrder pdOrder){
        boolean save = this.iPdOrderLocationService.saveOrderLocation(pdOrder);
        return save;
    }


}
